package com.imooc.o2o.web.shopadmin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author yangshucheng
 * @create 2021-04-14 11:31
 * 返回目的html文件
 */
@Controller
@RequestMapping(value = "/shopadmin", method = RequestMethod.GET)
public class ShopAdminController {
    @RequestMapping(value = "/shopoperation")
    public String shopOperation() {
        //转发至店铺操作页面
        return "shop/shopoperation";
    }

    @RequestMapping(value = "/shoplist")
    public String shopList() {
        //转发至店铺列表页面
        return "shop/shoplist";
    }

    @RequestMapping(value = "/shopmanagement")
    //转发至店铺管理页面
    public String shopManagement() {
        return "shop/shopmanagement";
    }

    @RequestMapping(value = "/productcategorymanagement", method = RequestMethod.GET)
    private String productCategoryManagement() {
        //转发至商品类别页面
        return "shop/productcategorymanagement";
    }

    @RequestMapping(value = "productmanagement")
    public String productManagement(){
        //转发至商品管理页面
        return "shop/productmanagement";
    }
    @RequestMapping(value = "productoperation")
    public String productOperation(){
        //转发至商品添加/编辑页面
        return "shop/productoperation";
    }
}
